<template>
  <van-nav-bar
    :title="title"
    left-text="返回"
    left-arrow
    @click-left="$router.back()"
    @click-right="$router.push('/search')"
  >
    <template #right>
      <van-icon name="search" size="18" />
    </template>
  </van-nav-bar>
</template>

<script>
export default {
  props: ['title']
}
</script>

<style lang="scss" scoped>
::v-deep {
  .van-icon {
    color: #ff5f16;
  }
  .van-nav-bar__text {
    color: #ff5f16;
  }
}
</style>